<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:py="http://genshi.edgewall.org/"
  xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="master.html" />
  <head>
    <title>Stickum - Copy and Paste #${paste.id}</title>
    <style type="text/css" py:content="highlightStyles" />
  </head>
  <body>
    <div id="paste_${paste.id}" class="pasteview">
      <div class="paste_header">
        ${paste.lang=="None" and "P" or "%s code p" % languages[paste.lang]}asted @ ${paste.pasted_on.strftime("%H:%M")}
        on ${paste.pasted_on.strftime("%a, %d %b %y")}<br/>
        <ul class="actions">
          <li class="first"><a href="${tg.url('/paste/%s' % paste.id)}">Syntaxed up</a></li>
          <li><a href="${tg.url('/paste/%s/plain' % paste.id)}">Plain Text</a></li>
        </ul>
      </div>
      ${XML(paste.formatted_lines)}
    </div>
    <div id="edit" class="paste_zone">
      <form action="${tg.url('/paste/save')}" method="post">
        <div>
          <label for="lang">Syntax Highlighting:</label>
          <select name="lang">
            <option py:for="lang in sorted(languages.keys())" value="${lang}" selected="${tg.selector(lang==paste.lang)}">${languages[lang]}</option>
          </select>
        </div>
        <div><textarea name="content" rows="20" cols="80" py:content="paste.content"></textarea></div>
        <div><input type="submit" name="submit" value="Paste it!"/></div>
      </form>
    </div>
  </body>
</html>
